package day08.test3;

public class test3 {
    public static void main(String[] args) {
        Cat ktm = new Cat();
        ktm.name = "Hello Kitty";
        ktm.age = 5;
        ktm.colour = "pink";
        ktm.catType = "凯蒂猫";

        ktm.eat();
        ktm.sleep();
        ktm.print();
    }
}

class Cat{
    String colour;
    int age;
    String name;
    String catType;

    public void eat()
    {
        System.out.println(name+"正在吃饭！");
    }
    public void sleep()
    {
        System.out.println(name+"正在睡觉！");

    }
    public void print()
    {
        System.out.println("颜色："+colour);
        System.out.println("年龄："+age);
        System.out.println("名字："+name);
        System.out.println("类型："+catType);
    }
}
